package ru.ifmo.swing.genetics.config;

import ru.ifmo.automaton.Automaton;
import ru.ifmo.common.Source;

import java.util.List;

/**
 * @author avhaliullin
 */
public class AlphabetProvider<C> implements Source<List<C>> {

    private Source<Automaton<C, ?>> automatonSource;

    public List<C> create() {
        return automatonSource.create().getAlphabet();
    }

    public void setAutomatonSource(Source<Automaton<C, ?>> automatonSource) {
        this.automatonSource = automatonSource;
    }
}
